<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="rewrite.js"></script>
</head>

<body>
  <!-- <div onclick="name()"> click me</div> -->
  <!-- <div> click me</div> -->
  <button onclick="namef(event)"> click me</button>
</body>
<script>

  function namef(params) {
    console.log(params);
  }
  // window.addEventListener("DOMContentLoaded", () => {
  //   // document.querySelector("div").addEventListener("click", namef, "e1");
  //   document.querySelector("button").addEventListener("click", namef);
  // });
</script>

</html>